using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "SOInstance/Data/ItemData")]
public class ItemDataSO : ScriptableObject
{
    public ItemListSO list;

    public string itemName;
    public ItemType type;
    public int id;
    public Sprite sprite;
    [TextArea] public string info;

    public int maxStack;

    protected virtual void OnEnable()
    {
        if (!list.dataList.Contains(this)) list.dataList.Add(this);
    }
}
